package com.itheima.sh.b_HomeWork2;

public class Circle implements ShapePara {
    static final double PI = 3.14;//常量
    public double radius;//圆的半径

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public static double getPI() {
        return PI;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public int getArea() {
        return (int) (PI * radius * radius);
    }

    @Override
    public int getCircumference() {
        return (int) (PI * 2 * radius);
    }
}
